package hutool_test;

import cn.hutool.core.convert.Convert;

import java.util.Date;
import java.util.List;

public class TheMain {
    public static void main(String[] args) {
        System.out.println(Convert.digitToChinese(123.456));
        String str = Convert.toStr(121234);
        System.out.println(str);
        Integer[] arr = Convert.toIntArray(new String[]{"1", "2", "3", "4"});
        for (int i : arr) {
            System.out.print(i + " ");
        }
        System.out.println();
        Date date = Convert.toDate("2021-7-22");
        System.out.println(date);
        List<String> strList = Convert.toList(String.class, new int[]{1, 2, 3, 4, 5, 6, 7, 8});
        for (String s : strList) {
            System.out.print(s + " ");
        }
        System.out.println();
    }
}
